<template>
  <div class="recommend">
    <div v-for="(item, index) in recommends" :key="index">
      <a :href="item.link">
        <img :src="item.image" alt="" />
        <span>{{ item.title }}</span>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  props: ['recommends']
}
</script>

<style lang="less" scoped>
.recommend {
  display: flex;
  border-bottom: 8px solid #eee;
  div {
    flex: 1;
    text-align: center;
    padding: 10px;
    img {
      width: 100%;
      margin-bottom: 10px;
    }
  }
}
</style>
